package cc.co.taciano.agenda2.dao;

import java.util.List;
import cc.co.taciano.agenda2.beans.Perfil;
import cc.co.taciano.agenda2.dao.util.DataAccessLayerException;

/**
 * @author Taciano Morais Silva
 * @version 05/11/2008
 * @since 05/11/2008
 */
public class PerfilDao extends AbstractDao<Perfil> implements Dao<Perfil> {

    @Override
    public void create(Perfil bean) throws DataAccessLayerException {
        throw new UnsupportedOperationException();
    }

    @Override
    public Perfil find(Integer id) throws DataAccessLayerException {
        return (Perfil) super.find(Perfil.class, id);
    }

    @Override
    public List<Perfil> findAll() throws DataAccessLayerException {
        return super.findAll(Perfil.class);
    }

    @Override
    public void update(Perfil bean) throws DataAccessLayerException {
        // TODO Auto-generated method stub
        throw new UnsupportedOperationException();
    }

    @Override
    public void remove(Perfil obj) throws DataAccessLayerException {
        // TODO Auto-generated method stub
        throw new UnsupportedOperationException();
    }

    @Override
    public void remove(Integer id) throws DataAccessLayerException {
        super.delete(Perfil.class, id);
    }

}
